<include file="./Application/Admin/View/Public/htmlheader.html"/>
<include file="./Application/Admin/View/Public/header.html"/>
<include file="./Application/Admin/View/Public/left.html"/>

<ol class="breadcrumb">
    <li><a href="/Admin">首页</a></li>
    <li class="active">查看试卷</li>
</ol>
<table class="table table-hover">
    <caption>{$results['paperName']}-答题者:{$results['nickname']}-用时：{$results['time']}秒</caption>
    <thead>
    <tr>
        <th>题干</th>
        <th>选项</th>
        <th>正确选项</th>
        <th>我的选项</th>
        <th>分值</th>
    </tr>
    </thead>
    <tbody>
    <foreach name="results['question']" item="vo" key="key">
        <tr>
            <td>{$vo.title}</td>
            <td>A：{$vo.option1|default='暂无此选项'} B：{$vo.option2|default='暂无此选项'} C：{$vo.option3|default='暂无此选项'}
                D：{$vo.option4|default='暂无此选项'}
            </td>
            <td>
                <switch name="vo['answer']">
                    <case value="1">A</case>
                    <case value="2">B</case>
                    <case value="3">C</case>
                    <case value="4">D</case>
                </switch>
            </td>
            <td>{$results['answer'][$key]|default='漏答'}</td>
            <td>{$vo.score}</td>
        </tr>
    </foreach>
    <tr>
        <td></td>
        <td></td>
        <td></td>
        <td>总得分：{$scorce}</td>
    </tr>
    </tbody>
</table>

<include file="./Application/Admin/View/Public/footer.html"/>